-- GENERATED SPELL FOR [Gorishi Reaver] --


function spell0_6553(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6553', 606, 1)
end

function spell1_6553(pUnit, Event) --@Silithid Pox,n/a--
pUnit:FullCastSpellOnTarget(8137,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6553', 2000, 1)
end

function Sorts_6553(pUnit, Event)
local choix_sorts_6553 = math.random(0, 1)
if choix_sorts_6553 == 0 then
pUnit:RegisterEvent('spell0_6553', 1, 1)
end
if choix_sorts_6553 == 1 then
pUnit:RegisterEvent('spell1_6553', 1, 1)
end
end

function mob6553_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6553', math.random(1500, 3000), 1)
end

function mob6553_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6553_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6553_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6553, 1, 'mob6553_Action')
RegisterUnitEvent(6553, 2, 'mob6553_Leave')
RegisterUnitEvent(6553, 3, 'mob6553_Kill')
RegisterUnitEvent(6553, 4, 'mob6553_Die')
